import { createRouter, createWebHistory } from "vue-router";

import Login from '../views/Login.vue'
import Show from '../views/Show.vue'
import UserInfo from '../views/UserInfo.vue'
import Invest from '../views/Invest.vue'
import UserInAwait from '../views/UserInAwait.vue'

const routes = [
    {
        path: '/',
        name: 'Login',
        component: Login
    },
    {
        path: '/Show/:Id',
        name: 'Show',
        component: Show
    },
    {
        path: '/UserInfo/:B_Id',
        name: 'UserInfo',
        component: UserInfo
    },
    {
        path: '/Invest',
        name: 'Invest',
        component: Invest
    },
    {
        path: '/UserInAwait/:F_Id',
        name: 'UserInAwait',
        component: UserInAwait
    },


]
const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router